package eden.api.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class EdenPageResult<T> {
    private boolean success;

    private int code;

    private String msg;

    private T data;

    private Integer count;

    public static EdenPageResult<?>  ok(Object obj,int count){
        return EdenPageResult.builder().success(true).code(200).data(obj).count(count).build();
    }


}
